import { defineStore } from "pinia";
import userList from "../modules/userList";
import goods from "../modules/goods";

export const useUser = defineStore("admins", {
  // 为了完整类型推理，推荐使用箭头函数
  state: () => {
    return {
      // 所有这些属性都将自动推断出它们的类型
      userList: userList,
      goodsList: goods,
    };
  },
});
